package com.blrs.mapper;

import com.blrs.domain.StageAchievement;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface StageAchievementMapper {
    public StageAchievement selectStageAchievementById(String id);
    public List<StageAchievement> selectStageAchievementList(StageAchievement stageAchievement);
    public int insertStageAchievement(StageAchievement stageAchievement);
    public int updateStageAchievement(StageAchievement stageAchievement);
    public int deleteStageAchievementById(String id);
    public int deleteStageAchievementByIds(String[] ids);
    int deleteStageAchievementByStageIdAndTemplateId(@Param("stageId") String stageId, @Param("templateId") String templateId);
    List<StageAchievement> selectStageAchievementsByStageId(@Param("templateId") String templateId, @Param("stageId") String stageId);
    int checkStageAchievementNameUnique(@Param("stageId") String stageId,
                                        @Param("templateId") String templateId,
                                        @Param("achievementName") String achievementName,
                                        @Param("id") String id);
}